﻿using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using IHISCETeim.BLL;
using IHISCETeim.Library;
using IHISCETeim.Model;
using System.Data;
using System.Text;


namespace IHISCETeim.Web.MachineSys.PartsModel
{
    public partial class PartsCatheringBalanceView : PageBase
    {
        protected override string DWZRef
        {
            get
            {
                return "PartsCatheringList";
            }
        }

        protected override Permission[] PowerKey
        {
            get
            {
                return new Permission[] { Permission.查看 };
            }
        }

        protected int CID
        {
            get
            {

                return GetRequestValue<int>("CID", 0);
            }
        }

        //private FTradeCatheringInfo _objFx = null;

        //protected FTradeCatheringInfo obj
        //{
        //    get
        //    {
        //        if (_objFx == null)
        //            _objFx = FTradeCatheringController.GetById(CID);
        //        return _objFx;
        //    }
        //}


        protected void Page_Load(object sender, EventArgs e)
        {
            //string sqlwhere = string.Format(" FCatheringId={0} ", FCatheringId);
            DataTable dt = PartsBalanceController.GetBalanceList(CID);
            this.rpView.DataSource = dt;
            this.rpView.DataBind();
        }
    }
}